import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import '@icon-park/react/styles/index.css'
import reportWebVitals from './reportWebVitals';
import { Routes,Route,BrowserRouter } from "react-router-dom"
import App from './App';
import About from "./pages/Setting"
import Favourite from "./pages/Favourite"
import Info from "./pages/Info"
import Main from "./pages/Main"
import Setting from './pages/Setting';
import 'antd/dist/antd.css';
const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <React.StrictMode>
     <BrowserRouter>
       <Routes>
          <Route path={'/'} element={<App/>}>
          <Route path={'/main'} element={<Main/>}/>
          <Route path={'/favourite'} element={<Favourite/>}/>
          <Route path={'/info'} element={<Info/>}/>
          <Route path={'/setting'} element={<Setting/>}/>
          </Route>
       </Routes>
    </BrowserRouter>
  </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
